import request from "../request"

//  根据条件分页查询
export function queryChargingList(params) {
    return request({
        url: "/charge/chagAlarmRec/queryChargingList",
        method: "POST",
        data: params || {}
    })
}
// 转入充电记录接口
export function shiftAlarmRec(chagRecId, isDeduction) {
    return request({
        url: `/charge/chagAlarmRec/shiftAlarmRec/${chagRecId}/${isDeduction}`,
        method: "get",
    });
}
//  修改充电记录
export function updateAlarmRec(params) {
    return request({
        url: "/charge/chagAlarmRec/updateAlarmRec",
        method: "POST",
        data: params || {}
    })
}
// 导出数据接口
export function exportCharg(params) {
    return request({
        url: "/charge/chagAlarmRec/exportCharg",
        method: "post",
        data: params || {}
    })
}
// 电量变化接口
export function amountCalculated(params) {
    return request({
        url: "/charge/chagAlarmRec/amountCalculated",
        method: "post",
        data: params || {}
    })
}
// 根据卡号获取扣费卡号
export function getConsumptionCardNoByCardNo(cardNo) {
    return request({
        url: `/charge/chagAlarmRec/getConsumptionCardNoByCardNo/${cardNo}`,
        method: "get",
    });
}
// 根据卡号，站ID，枪ID查找计费组
export function getBillGroupIdByCondition(params) {
    return request({
        url: `/charge/chagAlarmRec/getBillGroupIdByCondition`,
        method: "post",
        data: params || {}
    });
}